import KBEngine
import random
import KBEDebug as log


class AvatarEquipment(KBEngine.EntityComponent):

    def __init__(self):
        KBEngine.EntityComponent.__init__(self)

    def onAttached(self, owner):
        log.INFO_MSG("AvatarEquipment::onAttached(): owner=%i" % (owner.id))

    def onDetached(self, owner):
        log.INFO_MSG("AvatarEquipment::onDetached(): owner=%i" % (owner.id))

    def onEquipmentEnable(self, body_lst, equip_lst, melt_stone_lst):
        log.INFO_MSG(f'onEquipmentEnable {body_lst} {equip_lst} {melt_stone_lst}')

    def onOpenBox(self, equip):
        log.INFO_MSG(f'onOpenBox {equip}')

    def onSynthesizeEquipCb(self, code):
        log.INFO_MSG(f'onSynthesizeEquipCb {code}')

    def onSynthesizeEquipSuccess(self, equip):
        log.INFO_MSG(f'onSynthesizeEquipSuccess {equip}')

    def onMeltCb(self, code):
        log.INFO_MSG(f'onMeltCb {code}')
